package com.lagou.pojo;

import com.lagou.annotation.MyComponent;
import com.lagou.annotation.MyService;

@MyService("account")
public class Account {
    private String username;
    private Double balance;

    public Account() {
    }

    public Account(String username, Double balance) {
        this.username = username;
        this.balance = balance;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "Account{" +
                "username='" + username + '\'' +
                ", balance=" + balance +
                '}';
    }
}
